From 60d78dbe14a6fd9cbc7d7daed60010b5514164d0 Mon Sep 17 00:00:00 2001 From: "kfraser@dhcp93.uk.xensource.com" Date: Tue, 27 Jun 2006 12:17:45 +0100 Subject: [PATCH] [LINUX] Allow dma_alloc_coherent() to work for regions up to 2MB. The previous limit of 0.5MB was insufficient for some drivers (e.g., when loading firmware). Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c b/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c index a358373c89..66fbdcbf41 100644 --- a/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c +++ b/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c @@ -264,7 +264,7 @@ static void contiguous_bitmap_clear( } /* Protected by balloon_lock. */ -#define MAX_CONTIG_ORDER 7 +#define MAX_CONTIG_ORDER 9 /* 2MB */ static unsigned long discontig_frames[1<